package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图片对象 sys_picture
 * 
 * @author ruoyi
 * @date 2021-05-26
 */
public class Picture extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图片Id */
    private Long pictureId;

    /** 媒体类型 */
    @Excel(name = "媒体类型")
    private String mimeType;

    /** 原文件名 */
    @Excel(name = "原文件名")
    private String originalFilename;

    /** seo名 */
    @Excel(name = "seo名")
    private String seoFilename;

    /** 别名 */
    @Excel(name = "别名")
    private String altAttribute;

    /** 标题 */
    @Excel(name = "标题")
    private String titleAttribute;

    /** 地址 */
    @Excel(name = "地址")
    private String virtualPath;

    /** 图片类型 */
    @Excel(name = "图片类型")
    private Integer pictureType;

    /** 新图片 */
    @Excel(name = "新图片")
    private Integer bNew;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setPictureId(Long pictureId) 
    {
        this.pictureId = pictureId;
    }

    public Long getPictureId() 
    {
        return pictureId;
    }
    public void setMimeType(String mimeType) 
    {
        this.mimeType = mimeType;
    }

    public String getMimeType() 
    {
        return mimeType;
    }
    public void setOriginalFilename(String originalFilename) 
    {
        this.originalFilename = originalFilename;
    }

    public String getOriginalFilename() 
    {
        return originalFilename;
    }
    public void setSeoFilename(String seoFilename) 
    {
        this.seoFilename = seoFilename;
    }

    public String getSeoFilename() 
    {
        return seoFilename;
    }
    public void setAltAttribute(String altAttribute) 
    {
        this.altAttribute = altAttribute;
    }

    public String getAltAttribute() 
    {
        return altAttribute;
    }
    public void setTitleAttribute(String titleAttribute) 
    {
        this.titleAttribute = titleAttribute;
    }

    public String getTitleAttribute() 
    {
        return titleAttribute;
    }
    public void setVirtualPath(String virtualPath) 
    {
        this.virtualPath = virtualPath;
    }

    public String getVirtualPath() 
    {
        return virtualPath;
    }
    public void setPictureType(Integer pictureType) 
    {
        this.pictureType = pictureType;
    }

    public Integer getPictureType() 
    {
        return pictureType;
    }
    public void setbNew(Integer bNew) 
    {
        this.bNew = bNew;
    }

    public Integer getbNew() 
    {
        return bNew;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pictureId", getPictureId())
            .append("mimeType", getMimeType())
            .append("originalFilename", getOriginalFilename())
            .append("seoFilename", getSeoFilename())
            .append("altAttribute", getAltAttribute())
            .append("titleAttribute", getTitleAttribute())
            .append("virtualPath", getVirtualPath())
            .append("pictureType", getPictureType())
            .append("bNew", getbNew())
            .append("createdBy", getCreatedBy())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
